ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  MonthName( )

MonthName(Month, Abbreviate)

The MonthName function returns the name of the month.


There is one mandatory argument.

Month

The Month argument is the number of the month (i.e., 1 throught 12).

Code:
<% =MonthName(6) %>

Output:
June


There is one optional argument.

Abbreviate

The Abbreviate argument is a Boolean value which gives the option of having the returned month name being abbreviated to the first three characters.

If set to True, the name will be abbreviated. If set to False the name will not be abbreviated.

Code:
<% =MonthName(6, True) %>

Output:
Jun